/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package indusbank;

import java.util.Scanner;

/**
 *
 * @author TQNINH
 */
public class AccountInfo {
    
    public AccountInfo() {
        
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        int action = 0;
        
        Account obj = new Account();
        Scanner scan = new Scanner(System.in);
        
        do {
            System.out.println("\n *** Welcome to Indus Bank Online ***");
            System.out.println("1. Create a new account");
            System.out.println("2. Display account information");
            System.out.println("3. Exit");
            System.out.print("Select the operation you want to perform: ");
            action = scan.nextInt();
            
            switch(action) {
                case 1:
                    obj.addAccount();
                    break;
                case 2:
                    obj.display();
                    break;
                case 3:
                    break;
                default:
                    System.out.println("Enter a valid option!");
                    break;
            }
        } while(action != 3);
    }
}
